
echo "download pages..."
..\..\bin\phantomjs  duokan.js $1 $2 1

echo "make book"
cd $2
pdftk *.pdf $2.pdf
mv $2.pdf ../

echo "clean"
cd ../
rm $2 -rf

